﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001365 RID: 4965
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakeOfferingRewardCsReq : IMessage<TakeOfferingRewardCsReq>, IMessage, IEquatable<TakeOfferingRewardCsReq>, IDeepCloneable<TakeOfferingRewardCsReq>, IBufferMessage
	{
		// Token: 0x17003E9F RID: 16031
		// (get) Token: 0x0600DE4D RID: 56909 RVA: 0x00252EB5 File Offset: 0x002510B5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakeOfferingRewardCsReq> Parser
		{
			get
			{
				return TakeOfferingRewardCsReq._parser;
			}
		}

		// Token: 0x17003EA0 RID: 16032
		// (get) Token: 0x0600DE4E RID: 56910 RVA: 0x00252EBC File Offset: 0x002510BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakeOfferingRewardCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003EA1 RID: 16033
		// (get) Token: 0x0600DE4F RID: 56911 RVA: 0x00252ECE File Offset: 0x002510CE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakeOfferingRewardCsReq.Descriptor;
			}
		}

		// Token: 0x0600DE50 RID: 56912 RVA: 0x00252ED5 File Offset: 0x002510D5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeOfferingRewardCsReq()
		{
		}

		// Token: 0x0600DE51 RID: 56913 RVA: 0x00252EE8 File Offset: 0x002510E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeOfferingRewardCsReq(TakeOfferingRewardCsReq other) : this()
		{
			this.monsterId_ = other.monsterId_;
			this.dDFEGMCDOGF_ = other.dDFEGMCDOGF_.Clone();
			this.aJCHIGGPBAH_ = other.aJCHIGGPBAH_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600DE52 RID: 56914 RVA: 0x00252F35 File Offset: 0x00251135
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeOfferingRewardCsReq Clone()
		{
			return new TakeOfferingRewardCsReq(this);
		}

		// Token: 0x17003EA2 RID: 16034
		// (get) Token: 0x0600DE53 RID: 56915 RVA: 0x00252F3D File Offset: 0x0025113D
		// (set) Token: 0x0600DE54 RID: 56916 RVA: 0x00252F45 File Offset: 0x00251145
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MonsterId
		{
			get
			{
				return this.monsterId_;
			}
			set
			{
				this.monsterId_ = value;
			}
		}

		// Token: 0x17003EA3 RID: 16035
		// (get) Token: 0x0600DE55 RID: 56917 RVA: 0x00252F4E File Offset: 0x0025114E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> DDFEGMCDOGF
		{
			get
			{
				return this.dDFEGMCDOGF_;
			}
		}

		// Token: 0x17003EA4 RID: 16036
		// (get) Token: 0x0600DE56 RID: 56918 RVA: 0x00252F56 File Offset: 0x00251156
		// (set) Token: 0x0600DE57 RID: 56919 RVA: 0x00252F5E File Offset: 0x0025115E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AJCHIGGPBAH
		{
			get
			{
				return this.aJCHIGGPBAH_;
			}
			set
			{
				this.aJCHIGGPBAH_ = value;
			}
		}

		// Token: 0x0600DE58 RID: 56920 RVA: 0x00252F67 File Offset: 0x00251167
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakeOfferingRewardCsReq);
		}

		// Token: 0x0600DE59 RID: 56921 RVA: 0x00252F78 File Offset: 0x00251178
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakeOfferingRewardCsReq other)
		{
			return other != null && (other == this || (this.MonsterId == other.MonsterId && this.dDFEGMCDOGF_.Equals(other.dDFEGMCDOGF_) && this.AJCHIGGPBAH == other.AJCHIGGPBAH && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600DE5A RID: 56922 RVA: 0x00252FD8 File Offset: 0x002511D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.MonsterId != 0U)
			{
				num ^= this.MonsterId.GetHashCode();
			}
			num ^= this.dDFEGMCDOGF_.GetHashCode();
			if (this.AJCHIGGPBAH != 0U)
			{
				num ^= this.AJCHIGGPBAH.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600DE5B RID: 56923 RVA: 0x0025303E File Offset: 0x0025123E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600DE5C RID: 56924 RVA: 0x00253046 File Offset: 0x00251246
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600DE5D RID: 56925 RVA: 0x00253050 File Offset: 0x00251250
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AJCHIGGPBAH != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.AJCHIGGPBAH);
			}
			if (this.MonsterId != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.MonsterId);
			}
			this.dDFEGMCDOGF_.WriteTo(ref output, TakeOfferingRewardCsReq._repeated_dDFEGMCDOGF_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600DE5E RID: 56926 RVA: 0x002530BC File Offset: 0x002512BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.MonsterId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MonsterId);
			}
			num += this.dDFEGMCDOGF_.CalculateSize(TakeOfferingRewardCsReq._repeated_dDFEGMCDOGF_codec);
			if (this.AJCHIGGPBAH != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AJCHIGGPBAH);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600DE5F RID: 56927 RVA: 0x00253128 File Offset: 0x00251328
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakeOfferingRewardCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.MonsterId != 0U)
			{
				this.MonsterId = other.MonsterId;
			}
			this.dDFEGMCDOGF_.Add(other.dDFEGMCDOGF_);
			if (other.AJCHIGGPBAH != 0U)
			{
				this.AJCHIGGPBAH = other.AJCHIGGPBAH;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600DE60 RID: 56928 RVA: 0x00253189 File Offset: 0x00251389
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600DE61 RID: 56929 RVA: 0x00253194 File Offset: 0x00251394
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 64U)
				{
					if (num == 32U)
					{
						this.AJCHIGGPBAH = input.ReadUInt32();
						continue;
					}
					if (num == 64U)
					{
						this.MonsterId = input.ReadUInt32();
						continue;
					}
				}
				else if (num == 120U || num == 122U)
				{
					this.dDFEGMCDOGF_.AddEntriesFrom(ref input, TakeOfferingRewardCsReq._repeated_dDFEGMCDOGF_codec);
					continue;
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04005829 RID: 22569
		private static readonly MessageParser<TakeOfferingRewardCsReq> _parser = new MessageParser<TakeOfferingRewardCsReq>(() => new TakeOfferingRewardCsReq());

		// Token: 0x0400582A RID: 22570
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400582B RID: 22571
		public const int MonsterIdFieldNumber = 8;

		// Token: 0x0400582C RID: 22572
		private uint monsterId_;

		// Token: 0x0400582D RID: 22573
		public const int DDFEGMCDOGFFieldNumber = 15;

		// Token: 0x0400582E RID: 22574
		private static readonly FieldCodec<uint> _repeated_dDFEGMCDOGF_codec = FieldCodec.ForUInt32(122U);

		// Token: 0x0400582F RID: 22575
		private readonly RepeatedField<uint> dDFEGMCDOGF_ = new RepeatedField<uint>();

		// Token: 0x04005830 RID: 22576
		public const int AJCHIGGPBAHFieldNumber = 4;

		// Token: 0x04005831 RID: 22577
		private uint aJCHIGGPBAH_;
	}
}
